package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppUserGiftDao;
import com.vf.admin.client.service.AppUserGiftService;
import com.vf.admin.miaodong.entity.AppUserGift;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppMingXiSongLiServiceImpl.java
 * @Description TODO
 * @createTime 2021年11月02日 15:21:00
 */
@Service
public class AppUserGiftServiceImpl implements AppUserGiftService {

    @Autowired
    AppUserGiftDao appUserGiftLiDao;

    @Override
    public void saveOrUpdate(AppUserGift pojo) {
        appUserGiftLiDao.saveOrUpdate(pojo);
    }

    @Override
    public void uodateData(Integer giftid,String picture,String giftname) {
        appUserGiftLiDao.uodateData(giftid,picture,giftname);
    }

    @Override
    public List<AppUserGift> findList(Integer userid) {
        return appUserGiftLiDao.findList(userid);
    }

    @Override
    public AppUserGift getGift(Integer userid, Integer giftid) {
        return appUserGiftLiDao.getGift(userid,giftid);
    }
}